package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.ChartStrData;
import com.example.entity.ChartTimeData;
import com.example.entity.VoDiagnosisDrList;
import com.example.pojo.Diagnosis;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 诊断信息表(Diagnosis)表数据库访问层
 *
 * @email: pengyujun53@163.com
 * @author: peng_YuJun
 * @date: 2024/01/17
 * @time: 23:08
 */
@Repository
public interface DiagnosisMapper extends BaseMapper<Diagnosis> {

    List<VoDiagnosisDrList> selectListVoByPtId(Long ptId);

    List<VoDiagnosisDrList> selectListVoByDrId(Long drId);

    List<ChartTimeData> countDiagnosisFreq();

    List<ChartStrData> countDiseaseFreq();

    List<ChartStrData> countPeriod();

    List<ChartStrData> countEntVisits();

    List<ChartStrData> countSatisfyDegree();
}

